<div class="upload_warp">
		<div class="upload_type">
			<div v-if="message=='img'" class="file_box">
				<a href="javascript:;" class="uploadBtn">添加图片</a>
				<input type="file" @change="fileChange" multiple="multiple" accept="image/*" >
			</div>
				<a v-if="message!='img'" href="javascript:;"  data-toggle="modal" data-target="#upload_type_modal">添加附件</a>
		</div>
		<div class="fileView_wrap"> 
			<div class="imgList" @click="lookImg($event,fileList,index)" :data-index="index" v-for="(o,index) in fileList" v-if="message=='img'">
				<img :src="o.file_url" alt="" />
				<button  class="delete" @click="removeFn($event,index,o)">
					<i class="icon iconfont"> &#xe62f;</i>
				</button>
			</div>
			<div class="fileList" @click="lookImg($event,fileList,index)" :data-index="index" v-for="(o,index) in fileList"  v-if="message!='img'">
				<div class="img_box">
					<img :src="o.file_url" alt="" />
				</div>
				<div class="content">
					<div class="name">{{ o.name }}</div>
					<div class="size">{{ o.size+"B" }}</div>
				</div>
				<button  class="delete" @click="removeFn($event,index)">
					<i class="icon iconfont"> &#xe62f;</i>
				</button>
			</div>
		</div>
		<div class="modal fade" id="upload_type_modal" tabindex="-1" role="dialog">
			<div class="modal-dialog" role="document" style="width:310px;">
				<div class="modal-content" >
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 class="modal-title" id="myModalLabel">选择上传附件方式</h4>
					</div>
					<div class="modal-body" style="text-align: center;">
						<div class="file_box">
							<a href="javascript:;" class="uploadBtn">选择本地文件</a>
							<input type="file" @change="fileChange" multiple="multiple"  />
						</div>
						<br />
						<a href="">从钉盘选择</a></div>
						<div class="modal-footer" style="text-align: center;">
							<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						</div>
				</div>
			</div>
		</div>
</div>